package com.unittec.drainage.sdk.manage.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.unittec.drainage.sdk.root.domain.Paging;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 月度统计报表请求实体
 *
 * @author wangyongfeng
 * @date 2021/8/25
 */
@Data
@ApiModel("月度统计报表请求实体")
public class Req301118 extends Paging implements Serializable {

    private static final long serialVersionUID = 5776737392575817307L;

    /**
     * 水源类型(1=自备水源，2=建筑水源)
     */
    @ApiModelProperty(value = "水源类型",required = true)
    @NotBlank(message = "请传入水源类型")
    private String waterheadType;

    /**
     * 年份
     */
    @ApiModelProperty(value = "年份")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy")
    private Date year;
}
